package com.huang.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author HuangShen
 * @Description 权限认证服务
 * @create 2021-09-04 16:13
 */
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(value = {"com.huang.base","com.huang.auth"})
public class ManagerAuthServerApplication {

    @Bean
    public BCryptPasswordEncoder bCryptPasswordEncoder(){
        return  new BCryptPasswordEncoder();
    }

    public static void main(String[] args) {
        SpringApplication.run(ManagerAuthServerApplication.class, args);
    }
}
